<template>
  <div>
    
    <MyCom :goodname="goodname[0]" :price="price[0]" :info="info"/>
    <MyCom :goodname="goodname[1]" :price="price[1]" :info="info"/>
    
   
  </div>
</template>
<script>
// 导入=>注册=>使用
import MyCom from './MyCom.vue'
export default {
  data() {
    return {
      goodname:['超级好吃的口水鸡','超级好吃的糖'],
      price:[50,20],
      info:'打骨折'
    }
  },
  components:{
    MyCom
  }
}
</script>